home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / SLAX 6.0.8 / slax-6.0.8.iso / slax / base / 006-devel.lzm / usr / include / libwmf / svg.h < prev    next >
Encoding:
C/C++ Source or Header  |  2007-02-16  |  1.6 KB  |  64 lines

  1. /* libwmf (<libwmf/svg.h>): library for wmf conversion
  2.    Copyright (C) 2000 - various; see CREDITS, ChangeLog, and sources
  3.  
  4.    The libwmf Library is free software; you can redistribute it and/or
  5.    modify it under the terms of the GNU Library General Public License as
  6.    published by the Free Software Foundation; either version 2 of the
  7.    License, or (at your option) any later version.
  8.  
  9.    The libwmf Library is distributed in the hope that it will be useful,
  10.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  11.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  12.    Library General Public License for more details.
  13.  
  14.    You should have received a copy of the GNU Library General Public
  15.    License along with the libwmf Library; see the file COPYING.  If not,
  16.    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  17.    Boston, MA 02111-1307, USA.  */
  18.  
  19.  
  20. #ifndef LIBWMF_SVG_H
  21. #define LIBWMF_SVG_H
  22.  
  23. #include <stdio.h>
  24.  
  25. #include <libwmf/types.h>
  26.  
  27. #ifdef __cplusplus
  28. extern "C" {
  29. #endif
  30.  
  31. typedef struct _wmf_svg_t wmf_svg_t;
  32.  
  33. struct _wmf_svg_t
  34. {    /* other */
  35.  
  36.     wmfD_Rect bbox;
  37.  
  38.     wmfStream* out; /* Output stream */
  39.  
  40.     char* Description;
  41.  
  42.     unsigned int width;
  43.     unsigned int height;
  44.  
  45.     struct _wmf_svg_image /* SVG device layer writes raster images as PNG */
  46.     {    void* context;
  47.         char* (*name) (void*); /* takes context; returns file name */
  48.     } image;
  49.  
  50.     unsigned long flags;
  51. };
  52.  
  53. #define WMF_SVG_GetData(Z) ((wmf_svg_t*)((Z)->device_data))
  54.  
  55. #define WMF_SVG_INLINE_IMAGES (1 << 0)
  56.  
  57. extern void wmf_svg_function (wmfAPI*);
  58.  
  59. #ifdef __cplusplus
  60. }
  61. #endif
  62.  
  63. #endif /* ! LIBWMF_SVG_H */
  64.